﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace FinalProject
{
    public partial class FormMemberTypeInfo : Form
    {
        public FormMemberTypeInfo()
        {
            InitializeComponent();
        }

        private void FormMemberTypeInfo_Load(object sender, EventArgs e)
        {
            LoadList();
        }

        private void LoadList()
        {
            MemberTypeInfoBll mtiBll = new MemberTypeInfoBll();
            //禁止自动生成列
            dgvList.AutoGenerateColumns = false;
            //指定数据源为查询结果
            dgvList.DataSource = mtiBll.GetList();
        }
    }
}
